import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {UIRiskTask} from "../../../entity/UIRiskTask";
import {UIRiskCheckPlan} from "../../../entity/UIRiskCheckPlan";
import {Router} from "@angular/router";

@Component({
  selector: 'app-risk-check-list',
  templateUrl: 'risk-check-list.html',
  styleUrls: ['./risk-check-list.scss']
})
export class RiskCheckListComponent implements OnInit{

  @Input() values : UIRiskCheckPlan[] = [];

  @Output() detailFired : EventEmitter<UIRiskCheckPlan> = new EventEmitter<UIRiskCheckPlan>();


  constructor(protected _router: Router) { }

  ngOnInit() : void {
  }

  detail(v : UIRiskCheckPlan){
    //TODO pass proxy and let the detail page to request more details
    this.detailFired.emit(v)
  }

}
